<ion-view view-title="选择联系人">
    <ion-nav-buttons side="left">
        <button class="button back-button buttons icon ion-ios-arrow-left button-clear header-item" nav-direction="back" ng-click="myGoBack()">返回</button>
    </ion-nav-buttons>
    <ion-content>
        <ion-refresher
                pulling-text="下拉刷新..."
                on-refresh="doRefresh()">
        </ion-refresher>
        <div ng-if="showloading" style="margin-top:60px; text-align: center">
            <ion-spinner icon="ios" style="height: 60px; width: 60px;"></ion-spinner>
        </div>
        <div ng-if="showloading == false" class="content">
            <div class="bar bar-header item-input-inset">
                <label class="item-input-wrapper">
                    <i class="icon ion-ios-search placeholder-icon"></i>
                    <input type="search" placeholder="搜索" ng-model="search.content" ng-change="searchLinkman(search.content)">
                </label>
            </div>
            <h5 ng-if="linkmanData==''" style="color: #69717d;text-align: center;margin-top: 50px;">未找到数据</h5>
            <ul class="list">
                <li class="item"  on-hold="deleteLink(linkman)" collection-repeat="linkman in linkmanData" ng-click="chooseLinkman(linkman.khmc,linkman.lxdh)">
                    <i ng-if="linkman.khmc!=''" style="margin-left: 10px;font-size: 16px;">{{linkman.khmc}}</i>
                    <i ng-if="linkman.khmc==''" style="margin-left: 10px;font-size: 16px;">暂无客户名称</i>
                    <i ng-if="linkman.lxdh!=''" style="font-size: 13px;margin-right: 10px;float: right;">{{linkman.lxdh}}</i>
                    <i ng-if="linkman.lxdh==''" style="font-size: 13px;margin-right: 10px;float: right;">暂无联系方式</i>
                </li>
            </ul>
        </div>
        <ion-infinite-scroll   on-infinite="loadMore()"  distance="1%" ng-if="hasNextPage()"></ion-infinite-scroll>
    </ion-content>
</ion-view>